package com.wuzhun.wxmp.model.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.alibaba.excel.annotation.write.style.HeadStyle;
import com.alibaba.excel.enums.poi.FillPatternTypeEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author Paulin
 * @date 2023/6/6 10:19
 */
@Data
@ContentRowHeight(24)
@HeadRowHeight(30)
@HeadStyle(fillPatternType = FillPatternTypeEnum.NO_FILL)
@EqualsAndHashCode
public class MessageData {
    /**
     * 单位
     */
    @ColumnWidth(12)
    @ExcelProperty("单位")
    private String department;
    /**
     * 公众号
     */
    @ColumnWidth(14)
    @ExcelProperty("公众号")
    private String mpName;

    /**
     * 微信用户openId
     */
    @ColumnWidth(30)
    @ExcelProperty("微信用户ID")
    private String wxUserId;
    /**
     * 消息内容
     */
    @ColumnWidth(50)
    @ExcelProperty("消息内容")
    private String content;

    /**
     * 发消息时间
     */
    @ColumnWidth(22)
    @ExcelProperty("发消息时间")
    private String formatCreatedTime;

}
